home *** CD-ROM | disk | FTP | other *** search
- function starMove()
- {
- this.xspd -= 0.6;
- this.yspd -= 0.6;
- this.starscale *= 1.05;
- this._x += this.xspd;
- this._y += this.yspd;
- this._xscale = this.starscale;
- this._yscale = this.starscale;
- this._y >= -50 ? null : this.removeMovieClip();
- }
- function burstt(a, d, c)
- {
- k = 0;
- while(k < 15)
- {
- curStar = attachMovie("bstar","cstar" + i,i);
- i++;
- i <= 1000 ? null : (i = 0);
- curStar.gotoAndStop(random(c) + 1);
- c != 10 ? null : curStar.gotoAndStop(random(2) + 4);
- curStar._xscale = 50 + random(101);
- curStar._yscale = curStar._xscale;
- curStar._x = a;
- curStar._y = d;
- curStar.xspd = Math.random() * 10 - 5;
- curStar.yspd = Math.random() * 10 - 3;
- curStar.grav = 0.5;
- curStar.onEnterFrame = Move;
- k++;
- }
- }
- function Move()
- {
- if(_currentframe == 6)
- {
- this.removeMovieClip();
- }
- this._x += this.xspd;
- this._y -= this.yspd;
- this.yspd -= this.grav;
- if(this._y > 450)
- {
- this.removeMovieClip;
- }
- }
- xspd;
- yspd;
- starscale;
- i = 0;
- burstCounter = 0;
- onMouseDown = function()
- {
- if(_currentframe != 6 && burstCounter <= 0)
- {
- burstt(_root._xmouse,_root._ymouse,random(6));
- burstCounter = 15;
- }
- if(_root.soundMC.hitTest(_root._xmouse,_root._ymouse,true))
- {
- _root.soundMC.play();
- }
- };
- onEnterFrame = function()
- {
- burstCounter--;
- if(_currentframe == 1)
- {
- curstar = attachMovie("star","star" + i,i);
- i++;
- i <= 1000 ? null : (i = 0);
- curstar._x = bee._x + 5;
- curstar._y = bee._y + 5;
- curstar.xspd = -1 - Math.random() * 3;
- curstar.yspd = -1.2 - Math.random() * 3;
- curstar.starscale = 50;
- curstar.onEnterFrame = starMove;
- }
- };
-